<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title></title>
         <h:outputStylesheet library="css" name="mainstyle.css"/>
    </h:head>
    <h:body>
        <div id="container" align="center">
            <p:growl id="growl_index" autoUpdate="true"  life="3000"/>


            <p:panel id="panel_login" header="Login" style="width: 320px">
                <h:form id="loginForm">

                    <p:focus for="login"/>

                    <br class="clear"/>

                    <h:outputText styleClass="formLabel" value="Usuário:" style="width: 90px; margin-right: 20px"/>
                    <p:inputText id="login" value="#{dataSessionManagedBean.currentUser.login}" styleClass="formInput"/>

                    <br class="clear"/>

                    <h:outputText styleClass="formLabel" value="Senha:" style="width: 100px"/>
                    <p:password id="password" feedback="false"  value="#{dataSessionManagedBean.currentUser.password}" styleClass="formInput"/>
                         <br class="clear"/>
                         
                    <div align="left" style="float: left">
                        <p:commandButton id="loginButton" value="Entrar" type="submit" action="#{dataSessionManagedBean.login()}"  ajax="false"/>
                    </div>

                    <div align="right" style="float: right">
                        <br/>
                        <p:commandLink value="Esqueci minha senha" onclick=""/>
                    </div>

                    <div style="clear: both"/>
                </h:form>
            </p:panel>

        </div>
    </h:body>
</html>

